/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.model.generators;

import pl.edu.amu.wmi.kino.visualjavafx.model.animation.interpolators.Interpolation;
import pl.edu.amu.wmi.kino.visualjavafx.model.animation.transformations.Rotation;

/**
 *
 * @author Admin
 */
public class ModelRotationGenerator {
    public static Rotation generateRotation(double angle,double anchorX,double anchorY,Interpolation i){
        Rotation res = new Rotation();
        res.setDestinedRotationAngle(angle);
        res.setDestinedHCenter(anchorX);
        res.setDestinedVCenter(anchorY);
        res.setInterpolation(i);
        return res;
    }

}
